# 删除数据的函数
def DeleteFunction(target_name):
    # 打开文件并录入数据
    file = open("information.txt", encoding="UTF-8")
    main_list = list()
    # 将文件读取并过滤选定的数据
    for line in file:
        temp = line.split(" ")
        if target_name in temp:
            None
        else:
            main_list.append(temp)
    file.close()
    # 将数据返回作为新值
    return main_list


if __name__ == '__main__':
    main_list = DeleteFunction("杨逸超")
    print(main_list)
